import { defineConfig } from "vitepress";

// 顶部导航栏
export default defineConfig({
  title: "博客", //左上角文字
  description: "博客",
  head: [["link", { rel: "icon", type: "image/svg+xml", href: "/logo.svg" }]], //icon图标

  //主题
  themeConfig: {
    logo: "/logo.svg", //logo
    nav: [
      { text: "首页", link: "/" },
      { text: "笔记", link: "/src/note" },
    ],
    // 左侧导航栏
    sidebar: {
      "/src/note/": [
        {
          text: "笔记",
          // collapsed: true, //侧边栏是否可以折叠
          items: [
            {
              text: "nodejs",
              link: "/src/note/index",
            },
            {
              text: "VUE2",
              link: "/src/note/vue2",
            },
            {
              text: "VUE3",
              link: "/src/note/vue3",
            },
            {
              text: "TS",
              link: "/src/note/ts",
            },
            {
              text: "React",
              link: "/src/note/react",
            },
            {
              text: "数据加解密",
              link: "/src/note/crypto",
            },
          ],
        },
        {
          text: "其他",
          items: [
            {
              text: "常见场景",
              link: "/src/note/others",
            },
          ],
        },
      ],
    },

    socialLinks: [
      { icon: "github", link: "https://gitee.com/shmily0810/blog" },
    ],
  },
});
